#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtNetwork/QTcpServer>
#include <QtNetwork/QTcpSocket>
#include <QDebug>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <QVariantList>
#include <QString>
#include <QMessageBox>
#include "admin.h"
#include "cashier.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void mysql_init();
public slots:
    //void newClientConnect();
    void ad_return();
    void ch_return();
private slots:
    void on_pushButton_clicked();

private:
    Ui::MainWindow *ui;
    //QTcpServer* _listen;
    //QTcpSocket* _communtion;
    admin admin1;
    cashier ch;
};
#endif // MAINWINDOW_H
